sap.ui.define(function () {
	"use strict";

	return {

		priceState: function (price) {

            
			var stateLow = 20;
			var stateHigh = 40;
			var iprice = parseFloat(price);
            
			if (isNaN(iprice)) {
				return "None";
			} else {
				if (iprice < stateLow) {
					return "Information";
				} else if (iprice < stateHigh) {
					return "Success";
				} else if (iprice >= stateHigh) {
					return "Warning";
				} else {
					return "Error";
				}
			}
		}
	};

});